<h1 id="titlename">添加用户</h1>
<div class="clear">
    <div class="row">
        <div class="col-sm-8 col-sm-offset-1">
            <div class="col-sm-10 col-sm-offset-2">
                <div <?php $err = validation_errors(); echo !(empty($error) && empty($err)) ? 'class="alert alert-danger text-center"' : '' ?>><?php echo validation_errors(); ?></div>
            </div>
<?php echo form_open('poster_admin/user/create', array('class'=>'form-horizontal','role'=>'form')); ?>
            <div class="form-group">
                <label for="username" class="col-sm-3 control-label">账号</label>
                <div class="col-sm-9">
                    <input type="text" name="username" class="form-control" id="username" size="20" placeholder="账号"/>
                </div>
            </div>
            <div class="form-group">
                <label for="password" class="col-sm-3 control-label">密码</label>
                <div class="col-sm-9">
                    <input type="password" name="password" class="form-control" id="password" size="20" placeholder="密码"/>
                </div>
            </div>
            <div class="form-group">
                <label for="passconf" class="col-sm-3 control-label">确认密码</label>
                <div class="col-sm-9">
                    <input type="password" name="passconf" class="form-control" id="passconf" size="20" placeholder="确认密码"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-offset-2 col-sm-10">
                    <input type="submit"  class="btn btn-primary btn-block btn-lg" value="提交" />
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-offset-2 col-sm-10">
                    <a href="<?php echo base_url().'poster_admin/user'?>"><button type="button" class="btn btn-default btn-lg btn-block">返回到列表</button></a>
                </div>
            </div>
</form>
        </div>
    </div>
</div>